﻿using System.Web.Configuration;

namespace BLWCMS.Core.Weixin.Api
{
    public static class WeixinContext
    {
        /// <summary>
        /// 微信公众平台类型
        /// 1-订阅号  2-认证订阅号  3-服务号  4-认证服务号
        /// </summary>
        public static string WeixinType
        {
            get { return WebConfigurationManager.AppSettings["WeixinType"]; }
        }

        /// <summary>
        /// 微信公众平台Token
        /// </summary>
        public static string WeixinToken
        {
            get { return WebConfigurationManager.AppSettings["WeixinToken"]; }
        }

        /// <summary>
        /// 微信公众平台消息加解密密钥
        /// </summary>
        public static string WeixinEncodingAesKey
        {
            get { return WebConfigurationManager.AppSettings["WeixinEncodingAESKey"]; }
        }

        /// <summary>
        /// 微信公众平台AppId
        /// </summary>
        public static string WeixinAppId
        {
            get { return WebConfigurationManager.AppSettings["WeixinAppId"]; }
        }

        /// <summary>
        /// 微信公众平台AppSecret
        /// </summary>
        public static string WeixinAppSecret
        {
            get { return WebConfigurationManager.AppSettings["WeixinAppSecret"]; }
        }
    }
}
